package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 l_orderbill
 *
 * @author zyb
 * @date 2022-01-02
 */
@Data
public class LOrderbill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "billid", type = IdType.AUTO)
    private Integer billid;

    /** 订单编码 */
    @Excel(name = "订单编码")
    private String billcode;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date billdate;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long gid;

    /** 货品ID */
    @Excel(name = "货品ID")
    private Long goodsid;

    /** 大约数量 */
    @Excel(name = "大约数量")
    private Long quantity;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String tel;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private Long billstate;

    /** 完成否 */
    @Excel(name = "完成否")
    private Long isover;

    /** 清运地址 */
    @Excel(name = "清运地址")
    private String address;
    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date bookdate;

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("billid", billid)
                .append("billcode", billcode)
                .append("billdate", billdate)
                .append("gid", gid)
                .append("goodsid", goodsid)
                .append("quantity", quantity)
                .append("tel", tel)
                .append("billstate", billstate)
                .append("isover", isover)
                .append("address", address)
                .append("bookdate", bookdate)
                .toString();
    }
}
